import request from "@/router/axios";
import { baseUrl } from "@/config/env";

export const addProduct = (data) =>
  request({
    url: baseUrl + "/api/sample/product/first",
    method: "get",
    params: data,
  });

export const getdetails = (data) =>
  request({
    url: baseUrl + "/api/sample/product/first",
    method: "get",
    params: data,
  });

export const getTopMenu = () =>
  request({
    url: baseUrl + "/user/getTopMenu",
    method: "get",
  });

export const sendLogs = (list) =>
  request({
    url: baseUrl + "/user/logout",
    method: "post",
    data: list,
  });

export const logout = () =>
  request({
    url: baseUrl + "/user/logout",
    meta: {
      isToken: false,
    },
    method: "get",
  });
export const eidfirst = (list) =>
  request({
    url: baseUrl + "/api/sample/product/first",
    method: "put",
    data: list,
  });
